package jsr166.contrib.uncontended;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;

 abstract class AbstractUncontendedLock implements Lock {
    
    public static final boolean ENFORCE_UNCONTENDED_LOCKS = Boolean.getBoolean("enforceUncontendedLocks");
        public void lockInterruptibly() {
        lock();
    }

    public Condition newCondition() {
        return new UnusableCondition();
    }

    public boolean tryLock() {
        lock();
        return true;
    }

    public boolean tryLock(long arg0, TimeUnit arg1) throws InterruptedException {
        lock();
        return true;
    }

}
